import os


def merge(dir):
    big_file = open('/home/tarena/bigfile.txt', 'a+')
    dirs = os.listdir(dir)
    for item in dirs:
        temp_file = open(dir + '/' + item, 'r')
        big_file.write(temp_file.read())
        temp_file.close()
    big_file.close()

merge('/home/tarena/month02/day03')
